# coding=utf-8
import time

from selenium import webdriver

driver = webdriver.Chrome()
driver.get("https://mail.qq.com")

# selenium默认访问不了frame中的内容,需要进行切换
driver.switch_to.frame("login_frame")  # id, name, element都可以

driver.find_element_by_id("u").send_keys("邮箱")

time.sleep(3)
driver.quit()
